From 43788cd450c94399c6037f48749fd59324f1e8ff Mon Sep 17 00:00:00 2001 From: Christoph Burgdorf Date: Tue, 22 Jul 2014 00:30:54 +0200 Subject: [PATCH] remove deprecated lexical_ordering() usage --- src/cargo/core/package.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/core/package.rs b/src/cargo/core/package.rs index e70f86384..96175b9a1 100644 --- a/src/cargo/core/package.rs +++ b/src/cargo/core/package.rs @@ -1,4 +1,3 @@ -use std::cmp; use std::fmt::{Show,Formatter}; use std::fmt; use std::slice; @@ -122,8 +121,9 @@ impl Package { let mut sources = self.get_source_ids(); // Sort the sources just to make sure we have a consistent fingerprint. sources.sort_by(|a, b| { - cmp::lexical_ordering(a.kind.cmp(&b.kind), - a.location.to_string().cmp(&b.location.to_string())) + let a = (&a.kind, a.location.to_string()); + let b = (&b.kind, b.location.to_string()); + a.cmp(&b) }); let sources = sources.iter().map(|source_id| { source_id.load(config) -- 2.30.2